<?php

// These are all frameworks used by the core
// Do not recall them, it will not work
require_once('Core/clibFramework.php');
$framework->require_framework_once('PHP','Config');
$framework->require_framework_once('PHP','Database');
require_once('Core/clibIS.php');
require_once('Core/clibView.php');
require_once('Core/clibErrors.php');
$framework->include_framework('JS','System');
$framework->include_framework('JS','WindowActions');
$framework->include_framework('JS','Dashlets');

if ($_GET['devmode'] == true && $_GET['devkey'] == $config->Read('system','devkey'))
{
	include('Core/devCore.php');
} else {
	if($is->UserAuth() == true)
	{
		$view->Initalize(true);
	} else {
		$view->Initalize(false);
	}
}
?>
